<template>
	<view class="login">
		<view @click="hidenLoginPopup" class="login-popup">
			<view class="login-text">
				<text style="font-size: 28rpx;letter-spacing: 4rpx;">您還未登錄</text>
				<text style="font-size: 22rpx;color: #999;">相關操作涉及到用戶信息，請登錄后再試</text>
			</view>
			<view class="btn">
				<!-- <button open-type="getPhoneNumber" @getphonenumber="getPhoneNumber" class="left-btn" size="mini" type="default"></button> -->
				<button @click.stop="goRegister" class="left-btn" type="default" size="mini">开户</button>
				<button @click.stop="goLogin" class="right-btn" size="mini" type="default">登录</button>
			</view>
		</view>
	</view>
</template>

<script>
	import { mapMutations } from 'vuex';
	export default {
		data() {
			return {
				code: '',
				areaId: '1',
				//加密数据
				encryptedData: '',
				iv: '',
				rawData: '',
				signature: ''
			}
		},
		methods: {
			...mapMutations(['login']),
		},
		computed: {
			count() {
				return this.$store.state.count
			}
		}
	}
</script>

<style>

</style>